<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <meta charset="UTF-8">
    <script src="../static/js/vue.min.js" th:src="@{/js/vue.min.js}"></script>
</head>
<body>
<div id="app-5">
    <p>{{ message }}</p>
    <button @click="reverseMessage">反转消息</button>
</div>
<script type="text/javascript" th:inline="javascript">
    /*<![CDATA[*/
    var app5 = new Vue({
        el: '#app-5',
        data: {
            message: 'Hello Vue.js!'
        },
        methods: {
            reverseMessage: function () {
                this.message="hahha";
            }
        }
    })
    /*]]>*/
</script>
</body>
</html>
